fix: add missing showNativeManageAgentsWindow stub for non-darwin platforms#7
fix: add missing showNativeManageAgentsWindow stub for non-darwin platforms#7kevinelliott wants to merge 6 commits into
Conversation
…tforms The systray package was missing a stub implementation of showNativeManageAgentsWindow in windows_other.go, causing build failures on Linux and Windows. This adds the no-op stub with the correct signature to match windows_darwin.go.
There was a problem hiding this comment.
Pull request overview
This PR fixes a build failure on non-darwin platforms (Linux and Windows) by adding a missing stub implementation of showNativeManageAgentsWindow to the windows_other.go file. The method was implemented only for darwin in windows_darwin.go, but was being called from platform-agnostic code, causing compilation errors.
Changes:
- Added
showNativeManageAgentsWindowstub method with matching signature towindows_other.go - Added
catalogpackage import to support the new method signature
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
The getlantern/systray library requires libayatana-appindicator3-dev and libgtk-3-dev on Linux for building. Added apt-get install steps to all jobs that run on ubuntu-latest.
- Handle os.UserHomeDir() errors in getSystemdUserDir and getXDGAutostartDir - Add #nosec directives for G204 (subprocess) where input is from controlled sources
PowerShell was misinterpreting ./... and coverage.out, causing Go to look for a package called '.out'. Using cmd shell avoids this parsing issue.
- Use os.TempDir() instead of literal /tmp path (gocritic filepathJoin) - Add nolint:errcheck for intentional error ignoring in DisableAutoStart - Properly handle error from isSystemdEnabled - Add nolint:unused for uninstallCLI (reserved for future use)
|
Thanks for opening this — closing as fully superseded. Every fix this PR
The branch also targets the old module path ( |
Problem
The systray package was missing a stub implementation of
showNativeManageAgentsWindowinwindows_other.go, causing build failures on Linux and Windows.Solution
Added the no-op stub with the correct signature to match
windows_darwin.go.Testing
Fixes the lint error: